<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag" %>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文件重命名</title>
</head>
<lui:context/>
<u:View basePath="/res-datum/file" userJS="rename" userCSS="rename" delayLoadJs="false">
<body>
	<lui:dialogBody>
		<form class="m-cust" id='renameFrm'>
			<lui:ajax url="${ctx }/datum/file/rename/${requestScope.fileId }" id="renameAjax" formQuery="#renameFrm" formSubmit="true" onSuccess="FileRenamePage.onRenameSucc" 
		        contentType="application/x-www-form-urlencoded" type="post"/>
		    <div class="form-group m-narrow row m-narrow">
                <div class="col-sm-4 col-md-4 col-xs-4">
                	<label class="m-label m-float-right" for="oldFileName">原始名称：</label>
		    	</div>
		    	<div class="col-sm-8 col-md-8  col-xs-8">
		    		<p class='m-input'>${oldFileName }</p>
		    	</div>
		    </div>
		    <div class="form-group m-narrow row m-narrow">
                <div class="col-sm-4 col-md-4 col-xs-4">
                	<label class="m-label m-float-right" for="fileName">新文件名：</label>
		    	</div>
		    	<div class="col-sm-8 col-md-8  col-xs-8">
				    <input name="fileName" id="fileName" class="form-control m-input" maxlength="60" data-not-empty='true' 
		                data-empty-text='新的文件名不能为空' autofocus="autofocus" type="text"
		                data-prompt="dialog" data-validate='true'>
		    	</div>
		    </div>
		</form>
	</lui:dialogBody>
	<lui:dialogFooter>
       <button class="btn btn-primary m-btn" type="button" onclick="FileRenamePage.fileRename()">提交</button>
       <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box">关闭</button>
    </lui:dialogFooter>
</body>
</u:View>
</html>